package study.day5.t9;

public class CakeShop {
    //生产蛋糕 返回一个蛋糕的类型
    public Cake makeCake(String type){
        Cake cake;
        if (type.equals("泡芙")){
            cake=new PFCake();
        }else if(type.equals("慕斯")){
            cake=new MSCake();
        }else {
            cake=new HSRCake();
        }
        return cake;
    }
}
